import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { ObjCreate } from "../../common/ObjCreate";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { GTextFormat } from "../../../../common/GTextFormat";
import { ScaleBitmap } from "../../../../../com/mui/display/ScaleBitmap";
import { GLabel } from "../../../../../com/mui/controls/GLabel";
//class MagicTowerInfoTitle
    
    export  class MagicTowerInfoTitle /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initUI();
            return;
        }

        /* internal  */initUI(): void
        {
            this._bg = GlobalClass.getScaleBitmap(ImagesConst.ButtonBig_upSkin, new Object /* flash.geom.Rectangle */(40, 10, 40, 6));
            this._bg.width = 210;
            this._bg.height = 28;
            this.addChild(this._bg);
            this._title = ObjCreate.createLabel("", 0, 4, 210, 20, flash.text.TextFormatAlign.CENTER, this, true, GlobalStyle.color2Uint);
            this._title.setStyle("textFormat", new GTextFormat("LiSu", 16, GlobalStyle.color2Uint, false, null, null, null, null, flash.text.TextFormatAlign.CENTER));
            return;
        }

        public set title(arg1: string)
        {
            this._title.htmlText = arg1;
            return;
        }

        /* internal */ /* var */_bg: ScaleBitmap;

        /* internal */ /* var */_title: GLabel;
    }
